#include "labelx.h"
#include <QDebug>

LabelX::LabelX(QWidget *parent)
	: QLabel{parent}
{}

LabelX::LabelX(QString str): QLabel(str)
{}

void LabelX::enterEvent(QEnterEvent *event)
{
	QString str="Enter Eventer:" + QString::number(++enternum);
	this->setText(str);
}

void LabelX::leaveEvent(QEvent *event)
{
	QString str="Leave Eventer:" + QString::number(++leavenum);
	this->setText(str);
}
